package com.dudsbury.gui;
import java.util.ArrayList;

public class Core {

	public static void main(String srgs[]) {

		Database database = new Database("root", "",
				"localhost/assignment");
		ObjectCreator creator = new ObjectCreator(database);

		ArrayList<Booking> bookingList = new ObjectCreator(database).bookingCreate();
		String[] roomList = new ObjectCreator(database).getRooms();
		
		for (String r: roomList)
			System.out.println("Room: " + r);
		for (Booking b: bookingList)
			System.out.println(b.toString());
		
		new MainFrame(bookingList,roomList);
		
	//	String[][] query = database.returnQuery("select * from Customer"); 

		//database.doSQL("amend table Customer...");

		//database.commit();

		//database.rollback();

		//database.close();

		//database.printQuery(query);

		//System.out.println(query[4][0]);
		
		//ArrayList<MyBooking> bookingList = new ArrayList<MyBooking>();
		///bookingList.add(new MyBooking());
		
		//String roomList[] = {"1","2","3"};
		
		//new MainFrame(bookingList,roomList).setVisible(true);
		
		
		
		
	}

}
